Enhance server-side error handling with automatic reporting and user contact options#1414
Open
Enhance server-side error handling with automatic reporting and user contact options#1414
Conversation
Co-authored-by: Ekwav <16632490+Ekwav@users.noreply.github.com>
Co-authored-by: Ekwav <16632490+Ekwav@users.noreply.github.com>
Co-authored-by: Ekwav <16632490+Ekwav@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] implement issue 1407
Enhance server-side error handling with automatic reporting and user contact options
Aug 24, 2025
Ekwav
requested changes
Aug 24, 2025
Member
Ekwav
left a comment
There was a problem hiding this comment.
remove all changes but the error.tsx update
Collaborator
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- remove second click in crafts as it fails the test
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Issue #1407 identified that when pages break, it historically took a long time to notice these errors. The issue requested:
Solution
This PR completely overhauls the server-side error handling in
app/error.tsxto provide a professional, user-friendly error experience with both automatic reporting and clear contact options.🚨 Automatic Error Reporting
When a server-side error occurs, the error details are now automatically sent to the backend using the existing
sendFeedbackAPI:This happens silently in the background when the error page loads, ensuring immediate error visibility for the development team.
📝 Enhanced User Experience
Before: Users saw a basic "500 - Server-side error occurred" message with raw JSON error details.
After: Users now see:
💬 Easy Contact Options
The error page now prominently displays contact information:
https://discord.gg/wvKXfTgCfb)support@coflnet.com)📤 Manual Error Reporting
Users can optionally provide additional context through a form that:
server_error_manual)Technical Changes
Files Modified
app/error.tsx: Complete rewrite with enhanced error handlingglobal.d.ts: AddedErrorReportDatainterface for type safetydocs/enhanced-error-handling.md: Comprehensive documentationAPI Integration
api.sendFeedback()infrastructureserver_error_autoandserver_error_manualError Report Structure
Benefits
Testing
The enhanced error page has been tested with:
This implementation directly addresses both requirements from issue #1407 while maintaining a professional user experience and providing valuable debugging information to the development team.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
download.cypress.ionode index.js --exec install(dns block)sky.coflnet.com/usr/local/bin/node /home/REDACTED/work/hypixel-react/hypixel-react/node_modules/next/dist/compiled/jest-worker/processChild.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.